#ifndef _SSLOG_H_
#define _SSLOG_H_

#include "stdio.h"

#define __FILENAME__ (strrchr(__FILE__, '\\') ? (strrchr(__FILE__, '\\') + 1) : __FILE__)

#define SLOG_PRINT(X, args...) printf("[%s]-%d:" X, __FILENAME__, __LINE__, ##args)
#define ERR_PRINT(Frm, ...) SLOG_PRINT("Err:" Frm, __VA_ARGS__)
#define DEBUG_PRINT(fmt, args...)   printf("[%s]-%d:"fmt, __FUNCTION__, __LINE__, ##args)       

#endif